package com.wanghua.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanghua.common.utils.PageUtils;
import com.wanghua.mall.product.entity.SpuInfoEntity;
import com.wanghua.mall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author wanghua
 * @email 2367279431@qq.com
 * @date 2021-08-24 18:52:27
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存关于商品的很多数据
     */
    void saveDetail(SpuSaveVo spuSaveVo);

    /**
     * 条件列表
     */
    PageUtils queryPageCondition(Map<String, Object> params);

    //商品上架
    void productUp(Long spuId);

    /**
     * 根据skuId查询spu信息
     *
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

